package com.example.actordemo1.mailbox;

import akka.dispatch.Envelope;
import akka.dispatch.UnboundedStablePriorityMailbox;

import java.util.Comparator;

public class MailBoxActor extends UnboundedStablePriorityMailbox {
    public MailBoxActor(Comparator<Envelope> cmp, int initialCapacity) {
        super(new Comparator<Envelope>() {
            @Override
            public int compare(Envelope o1, Envelope o2) {

                return 0;
            }
        }, 1);
    }

    public MailBoxActor(Comparator<Envelope> cmp) {
        super(cmp);
    }
}
